package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@TableName("order_items")
public class OrderItems {
    @TableId(type = IdType.AUTO)
    @TableField("order_item_id")
    private Integer orderItemId;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("product_id")
    private Integer productId;

    
    private Integer sum;

    
    private BigDecimal price;

    
    private BigDecimal subtotal;

    @TableField(exist = false)
    private Integer cartId;

    @TableField(exist = false)
    private Products products;

    @TableField(exist = false)
    private List<Orders> orders;
    
    }